#include "stack.h"
#include  "Queue.h"

void Test1() 
{
	ST s;
	STInit(&s);
	STPush(&s, 1);
	STPush(&s, 2);
	STPrint(&s);
	printf("size == %d\n", STSize(&s));
	printf("Top  == %d\n", STTop(&s));
	printf("\n");

	STPush(&s, 3);
	STPush(&s, 4);
	STPush(&s, 5);
	STPush(&s, 6);
	STPrint(&s);
	printf("size == %d\n", STSize(&s));
	printf("Top  == %d\n", STTop(&s));
	printf("\n");

	STpop(&s);
	STpop(&s);
	STpop(&s);
	STPrint(&s);
	printf("size == %d\n", STSize(&s));
	printf("Top  == %d\n", STTop(&s));
	printf("\n");

	STDestory(&s);
}

void Test2()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 'a');
	QueuePush(&q, 'b');
	QueuePush(&q, 'c');
	QueuePush(&q, 'd');
	QueuePush(&q, 'e');
	QueuePush(&q, 'f');
	QueuePrint(&q);

	QueuePop(&q);
	QueuePop(&q);
	QueuePrint(&q);

	printf("QueueFront = %c\nQueueBack == %c\n", QueueFront(&q), QueueBack(&q));
	printf("QueueSize == %d\n", QueueSize(&q));

}

int main()
{
	//Test1();
	Test2();

	return 0;
}